<?php
class Logsql extends AppModel{
    var $useDbConfig = 'default';
    var $name = 'Logsql';
    var $useTable = 'logsqls';
    var $primaryKey = 'id';

/*
CREATE TABLE logsqls
(
  id serial NOT NULL,
  usuario character varying(20) NOT NULL,
  ip character varying(15) NOT NULL,
  transaccion numeric(50,0) NOT NULL,
  nr numeric(50,0) NOT NULL,
  query character varying(10000) NOT NULL,
  error character varying(5000),
  afectada numeric(10,0),
  num_rows numeric(10,0),
  took_ms numeric(10,0),
  fecha timestamp without time zone NOT NULL,
  CONSTRAINT logsqls_pkey PRIMARY KEY (id)
)
WITH (
  OIDS=FALSE
);
ALTER TABLE logsqls
  OWNER TO admin;
COMMENT ON TABLE logsqls
  IS 'tabla de registro de sql';
*/

}
?>
